/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.fi.muni.diplomka.common;

/**
 * Class representing Coordinates
 *
 * @author Jakub Kutil
 */
public class Coordinates {

    private int x_coordinate;
    private int y_coordinate;

    public Coordinates() {
    }

    public int getX_coordinate() {
        return x_coordinate;
    }

    public void setX_coordinate(int x_coordinate) {
        this.x_coordinate = x_coordinate;
    }

    public int getY_coordinate() {
        return y_coordinate;
    }

    public void setY_coordinate(int y_coordinate) {
        this.y_coordinate = y_coordinate;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 53 * hash + this.x_coordinate;
        hash = 53 * hash + this.y_coordinate;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Coordinates other = (Coordinates) obj;
        if (this.x_coordinate != other.x_coordinate) {
            return false;
        }
        if (this.y_coordinate != other.y_coordinate) {
            return false;
        }
        return true;
    }
}
